Integrand size = 31, antiderivative size = 163 \[ \int \frac {(b \cos (c+d x))^n (A+B \cos (c+d x))}{\cos ^{\frac {3}{2}}(c+d x)} \, dx=\frac {2 A (b \cos (c+d x))^n \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {1}{4} (-1+2 n),\frac {1}{4} (3+2 n),\cos ^2(c+d x)\right ) \sin (c+d x)}{d (1-2 n) \sqrt {\cos (c+d x)} \sqrt {\sin ^2(c+d x)}}-\frac {2 B \sqrt {\cos (c+d x)} (b \cos (c+d x))^n \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {1}{4} (1+2 n),\frac {1}{4} (5+2 n),\cos ^2(c+d x)\right ) \sin (c+d x)}{d (1+2 n) \sqrt {\sin ^2(c+d x)}} \]
[Out]
Time = 0.11 (sec) , antiderivative size = 163, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.097, Rules used = {20, 2827, 2722} \[ \int \frac {(b \cos (c+d x))^n (A+B \cos (c+d x))}{\cos ^{\frac {3}{2}}(c+d x)} \, dx=\frac {2 A \sin (c+d x) (b \cos (c+d x))^n \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {1}{4} (2 n-1),\frac {1}{4} (2 n+3),\cos ^2(c+d x)\right )}{d (1-2 n) \sqrt {\sin ^2(c+d x)} \sqrt {\cos (c+d x)}}-\frac {2 B \sin (c+d x) \sqrt {\cos (c+d x)} (b \cos (c+d x))^n \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {1}{4} (2 n+1),\frac {1}{4} (2 n+5),\cos ^2(c+d x)\right )}{d (2 n+1) \sqrt {\sin ^2(c+d x)}} \]
[In]
[Out]
Rule 20
Rule 2722
Rule 2827
Rubi steps \begin{align*} \text {integral}& = \left (\cos ^{-n}(c+d x) (b \cos (c+d x))^n\right ) \int \cos ^{-\frac {3}{2}+n}(c+d x) (A+B \cos (c+d x)) \, dx \\ & = \left (A \cos ^{-n}(c+d x) (b \cos (c+d x))^n\right ) \int \cos ^{-\frac {3}{2}+n}(c+d x) \, dx+\left (B \cos ^{-n}(c+d x) (b \cos (c+d x))^n\right ) \int \cos ^{-\frac {1}{2}+n}(c+d x) \, dx \\ & = \frac {2 A (b \cos (c+d x))^n \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {1}{4} (-1+2 n),\frac {1}{4} (3+2 n),\cos ^2(c+d x)\right ) \sin (c+d x)}{d (1-2 n) \sqrt {\cos (c+d x)} \sqrt {\sin ^2(c+d x)}}-\frac {2 B \sqrt {\cos (c+d x)} (b \cos (c+d x))^n \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {1}{4} (1+2 n),\frac {1}{4} (5+2 n),\cos ^2(c+d x)\right ) \sin (c+d x)}{d (1+2 n) \sqrt {\sin ^2(c+d x)}} \\ \end{align*}
Time = 0.21 (sec) , antiderivative size = 133, normalized size of antiderivative = 0.82 \[ \int \frac {(b \cos (c+d x))^n (A+B \cos (c+d x))}{\cos ^{\frac {3}{2}}(c+d x)} \, dx=-\frac {2 (b \cos (c+d x))^n \csc (c+d x) \left (A (1+2 n) \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {1}{4} (-1+2 n),\frac {1}{4} (3+2 n),\cos ^2(c+d x)\right )+B (-1+2 n) \cos (c+d x) \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {1}{4} (1+2 n),\frac {1}{4} (5+2 n),\cos ^2(c+d x)\right )\right ) \sqrt {\sin ^2(c+d x)}}{d \left (-1+4 n^2\right ) \sqrt {\cos (c+d x)}} \]
[In]
[Out]
\[\int \frac {\left (\cos \left (d x +c \right ) b \right )^{n} \left (A +B \cos \left (d x +c \right )\right )}{\cos \left (d x +c \right )^{\frac {3}{2}}}d x\]
[In]
[Out]
\[ \int \frac {(b \cos (c+d x))^n (A+B \cos (c+d x))}{\cos ^{\frac {3}{2}}(c+d x)} \, dx=\int { \frac {{\left (B \cos \left (d x + c\right ) + A\right )} \left (b \cos \left (d x + c\right )\right )^{n}}{\cos \left (d x + c\right )^{\frac {3}{2}}} \,d x } \]
[In]
[Out]
\[ \int \frac {(b \cos (c+d x))^n (A+B \cos (c+d x))}{\cos ^{\frac {3}{2}}(c+d x)} \, dx=\int \frac {\left (b \cos {\left (c + d x \right )}\right )^{n} \left (A + B \cos {\left (c + d x \right )}\right )}{\cos ^{\frac {3}{2}}{\left (c + d x \right )}}\, dx \]
[In]
[Out]
\[ \int \frac {(b \cos (c+d x))^n (A+B \cos (c+d x))}{\cos ^{\frac {3}{2}}(c+d x)} \, dx=\int { \frac {{\left (B \cos \left (d x + c\right ) + A\right )} \left (b \cos \left (d x + c\right )\right )^{n}}{\cos \left (d x + c\right )^{\frac {3}{2}}} \,d x } \]
[In]
[Out]
\[ \int \frac {(b \cos (c+d x))^n (A+B \cos (c+d x))}{\cos ^{\frac {3}{2}}(c+d x)} \, dx=\int { \frac {{\left (B \cos \left (d x + c\right ) + A\right )} \left (b \cos \left (d x + c\right )\right )^{n}}{\cos \left (d x + c\right )^{\frac {3}{2}}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {(b \cos (c+d x))^n (A+B \cos (c+d x))}{\cos ^{\frac {3}{2}}(c+d x)} \, dx=\int \frac {{\left (b\,\cos \left (c+d\,x\right )\right )}^n\,\left (A+B\,\cos \left (c+d\,x\right )\right )}{{\cos \left (c+d\,x\right )}^{3/2}} \,d x \]
[In]
[Out]